Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NStringMap<T> Class / TryGet Method
The key to look for.
The value corresponding to the given key. Valid only if true is returned.


In This Topic
    TryGet Method (NStringMap<T>)
    In This Topic
    Tries to get the value for the specified key.
    Syntax
    'Declaration
     
    
    Public Function TryGet( _
       ByVal key As System.String, _
       ByRef value As T _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NStringMap(Of T)
    Dim key As System.String
    Dim value As T
    Dim value As System.Boolean
     
    value = instance.TryGet(key, value)
    public System.bool TryGet( 
       System.string key,
       out T value
    )

    Parameters

    key
    The key to look for.
    value
    The value corresponding to the given key. Valid only if true is returned.

    Return Value

    True if the map contained a value for the specified key, otherwise false.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also